package kr.hkit.powerjava.chapter11.work;

public class Melon extends Food {
	private String farm; // 경작 농장 정보
	
	public Melon() { }

	public Melon(int calorie, int price, int weight, String farm) {
		super(calorie, price, weight);
		this.farm = farm;
	}

	public Melon(String farm) {
		this.farm = farm;
	}

	public String getFarm() {
		return farm;
	}

	public void setFarm(String farm) {
		this.farm = farm;
	}

	@Override
	public String toString() {
		return "Melon [농장 = " + farm + ", 칼로리 = " + getCalorie()
				+ ", 가격 = " + getPrice() + ", 중량 = " + getWeight()
				+ "]";
	}		
}
